const gotoPage = function (url, type = 'nav') {
  if (type === 'nav') {
    uni.navigateTo({
      url: url
    })
  } else {
    uni.switchTab({
      url: url
    })
  }
}

export { gotoPage }
